//
//  ViewController.swift
//  AdapterPattern
//
//  Created by LY on 2017/9/28.
//  Copyright © 2017年 DesignPatterns. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
//        let search = SearchTool(dataSource: SalesDataSource(),DevelopmentDataSource(),NewCoDictionary())
//        let names = search.employees
//        let titles = search.employees
//        for item in names{
//            print("Name = \(item.name)\n")
//        }
//        for item in titles{
//            print("Title = \(item.title)\n")
//        }
//        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

